app.controller('houseLargeClaimtrl', function($element, $scope, $state, rest, user, uploadConf, tipService, $window, $rootScope, decoJavaUrlLsf) {
    $scope.idstring = angular.copy($scope.ngDialogData, {});
    var token = $window.localStorage.getItem("token");

    $scope.exportData = function() {
        rest.decoJava({
            type: "post",
            url: "/tenancy-sys/admin/house/updateHouseAssigneds",
            data: {
                houseIds: $scope.idstring._idstring,
            },
            beforeSend: function(request) {
                request.setRequestHeader("token", token);
            },
            success: function(res) {
                if (res.code == "0000") {
                    tipService.show("body", {
                        message: res.message
                    }, 3);
                    $scope.closeThisDialog();
                    $scope.$apply();
                } else {
                    tipService.show("body", {
                        message: res.message,
                        notice: "danger"
                    }, 3);
                    $scope.closeThisDialog();
                }
            }
        })
    }

    $scope.hideBtn = function() {
        $scope.closeThisDialog();
    }

});